<template>
<!-- #ifdef APP-PLUS -->
<cell>
<!-- #endif -->
<view class="message-item sec-top"
	@click="onItemClick">
	<view class="message-item-header">
		<text class="iconfont icon-book middle"></text>
		<text class="sec-left">{{ item.title }}</text>
	</view>
	<view class="message-item-body line-clamp-2">
		<rich-text v-if="item.summary" :nodes="item.summary" />
	</view>
	<view class="message-item-footer">
		<text>查看详情</text>
	</view>
</view>
<!-- #ifdef APP-PLUS -->
</cell>
<!-- #endif -->
</template>

<script>
export default {
	props: {
		item: {
			type: Object,
			default: () => {}
		}
	},
	methods: {
		onItemClick() {
			this.$emit('on-item');
		}
	}
}
</script>
